package main

import (
	"fmt"
	"runtime"
)

func main() {
	go func(s string) {
		count := 2
		for i := 0; i < count; i++ {
			fmt.Println(s)
		}
	}("world")
	// 主协程
	count := 2
	for i := 0; i < count; i++ {
		// 切一下再次分配任务
		runtime.Gosched()
		fmt.Println("hello")
	}

}
